package org.rocky.core.helper;

import org.rocky.core.exception.BusinessException;
import org.rocky.lang.Error;

/**
 * @author sunxinhe
 */
public class AssertUtils {

    public static void assertTrue(boolean flag, Error error) {
        if (!flag) {
            throw new BusinessException(error);
        }
    }
}
